//
//  LinkDetailPage.h
//  Portable Traffic Signal Assistor
//
//  Created by Ding on 9/2/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TableSection.h"
#import "Link.h"
#import "Intersection.h"
#import "XMLParser.h"
#import "Agency.h"
#import "SubSystem.h"
#import "CustomizedBarButtonItem.h"
#import "IntersectionDetailPage.h"
#import "PickerViewController.h"

@interface LinkDetailPage : UITableViewController<UIAlertViewDelegate, UITextViewDelegate>

@property (nonatomic,retain) NSMutableArray * sections;
@property (nonatomic,retain) TableSection * linkNameSection;
@property (nonatomic,retain) TableSection * fromIntersectionNameSection;
@property (nonatomic,retain) TableSection * toIntersectionNameSection;
@property (nonatomic,retain) TableSection * directionSection;
@property (nonatomic,retain) TableSection * lengthSection;
@property (nonatomic,retain) TableSection * speedLimitSection;

@property (nonatomic,retain) UITextView *linkNameTextView;
@property (nonatomic,retain) UITextView *lengthTextView;
@property (nonatomic,retain) UITextView * speedLimitTextView;

@property (nonatomic,retain) UISwitch * directionSwitch;

@property (nonatomic,retain) Link * link;
@property (nonatomic,retain) Intersection * fromIntersection;
@property (nonatomic,retain) Intersection * toIntersection;
@property (nonatomic,retain) Agency * agency;
@property (nonatomic,retain) SubSystem *subSystem;

- (id) initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil link:(Link *)link agency:(Agency *)agency subSystem:(SubSystem*) subSystem;;

@end
